package com.lingshi.shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName t_specification
 */
@TableName(value ="t_specification")
@Data
public class Specification implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String specName;

    /**
     * 商品类型id
     */
    private Long productTypeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //=====================逻辑字段（用于复杂sql查询的结果封装，不参数SQL语句）==============================
    //一个规格有多个规格项
    @TableField(exist = false)
    private List<SpecificationOption> specificationOptions;
}